package com.wanghaixin.service.impl;

import com.wanghaixin.dao.SysRoleMapper;
import com.wanghaixin.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: 王海新
 * @Date: 2020/10/25 10:54
 * @Description:
 */
@Service
public class RoleServiceImpl  implements RoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<String> findRolsByUserID(Long userId) {

    return sysRoleMapper.findRolesByUserId(userId);
    }
}
